﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:bll="clr-namespace:Resn.WhuPub.BLL;assembly=Resn.WhuPub.BLL">
        <DataTemplate x:Key="EmployeeDataTemplate" DataType="{x:Type bll:Employee}">
                <Border Style="{StaticResource BorderStyle}">
                        <Grid Margin="6">
                                <Grid.RowDefinitions>
                                        <RowDefinition />
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                        <ColumnDefinition />
                                        <ColumnDefinition Width="Auto" MinWidth="60"/>
                                        <ColumnDefinition Width="Auto" MinWidth="280" />
                                        <ColumnDefinition Width="Auto" MinWidth="60"/>
                                        <ColumnDefinition Width="Auto" MinWidth="280" />
                                </Grid.ColumnDefinitions>

                                <TextBlock Grid.Column="0" Grid.Row="0" Style="{DynamicResource BigTextBlockStyle}"
                                           HorizontalAlignment="Stretch" VerticalAlignment="Top"
                                           Text="{Binding Name}" />

                                <TextBlock Grid.Column="1" Grid.Row="1" 
                                           HorizontalAlignment="Right"
                                           Text="类型" />
                                <TextBlock Grid.Column="2" Grid.Row="1" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding Level}" />

                                <TextBlock Grid.Column="3" Grid.Row="1" 
                                           HorizontalAlignment="Right"
                                           Text="状态" />
                                <TextBlock Grid.Column="4" Grid.Row="1" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding State}" />

                                <TextBlock Grid.Column="1" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="电话" />
                                <TextBlock Grid.Column="2" Grid.Row="2" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding Telephone}" />

                                <TextBlock Grid.Column="3" Grid.Row="2" 
                                           HorizontalAlignment="Right"
                                           Text="QQ" />
                                <TextBlock Grid.Column="4" Grid.Row="2" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding QQ}" />

                                <TextBlock Grid.Column="1" Grid.Row="3" 
                                           HorizontalAlignment="Right"
                                           Text="邮箱" />
                                <TextBlock Grid.Column="2" Grid.Row="3" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding Email}" />

                                <TextBlock Grid.Column="1" Grid.Row="4" 
                                           HorizontalAlignment="Right"
                                           Text="权限" />
                                <TextBlock Grid.Column="2" Grid.Row="4" Grid.ColumnSpan="3" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding Access}" />

                                <TextBlock Grid.Column="1" Grid.Row="5" 
                                           HorizontalAlignment="Right"
                                           Text="备注" />
                                <TextBlock Grid.Column="2" Grid.Row="5" Grid.ColumnSpan="3" 
                                           HorizontalAlignment="Left"
                                           Text="{Binding Memo}" />
                        </Grid>
                </Border>
        </DataTemplate>
</ResourceDictionary>